package com.cqq.auth.dao;

import java.util.List;

import com.cqq.auth.dao.domain.UserMenu;
import com.cqq.common.core.interfaces.CommonDao;

/**
 * <h3>用户菜单配置Dao接口</h3>
 * 
 * @author xijq
 * @version 1.0.0
 * 
 */
public interface UserMenuDao extends CommonDao<UserMenu> {

	public List<UserMenu> queryByUserId(Integer id,String systemCode);
	
	public List<UserMenu> queryByUserIdAndParentId(Integer userId,Integer parentId,String systemCode);

	public UserMenu queryByUserIdAndMenuId(Integer userId,Integer menuId);
	
	public void deleteByUserIdAndMenuId(Integer userId,Integer menuId);

	public void deleteByUserIdAndParentId(Integer userId,Integer parentId,String systemCode);
	
	public void updateIndex(Integer userId,Integer parentId,String systemCode,Integer menuId,Integer newIndex,Integer oldIndex);
}
